local hj_silue = fk.CreateSkill {
  name = "hj_silue",
  tags = { Skill.Compulsory, },
}


hj_silue:addEffect(fk.Damage, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hj_silue.name) and player:usedSkillTimes(hj_silue.name, Player.HistoryTurn) == 0 and
      data.to ~= player and not data.to.dead and not data.to:isNude()
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local cards = room:askToChooseCard(player, {
      target = data.to,
      flag = "he",
      skill_name = hj_silue.name,
    })
    if cards then
      room:obtainCard(player, cards, true, fk.ReasonPrey, player, hj_silue.name)
    end
  end,
})


return hj_silue